package com.ruoyi.system.domain;

import java.time.LocalDate;
import java.util.Date;

import com.alibaba.fastjson.JSON;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文件对象 policy_documents
 *
 * @author ruoyi
 * @date 2023-12-01
 */
public class PolicyDocuments extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 标题
     */
    @Excel(name = "标题")
    private String title;

    /**
     * 链接
     */
    @Excel(name = "链接")
    private String href;

    /**
     * 发布日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布日期", width = 30, dateFormat = "yyyy-MM-dd")
    private LocalDate publishDate;

    /**
     * 来源
     */
    @Excel(name = "来源")
    private String source;

    /**
     * 是否重点关注
     */
    @Excel(name = "是否重点关注")
    private Integer isImportant;

    public PolicyDocuments() {
    }

    public PolicyDocuments(String title, String href, LocalDate publishDate, String source) {
        this.title = title;
        this.href = href;
        this.publishDate = publishDate;
        this.source = source;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public String getHref() {
        return href;
    }

    public void setPublishDate(LocalDate publishDate) {
        this.publishDate = publishDate;
    }

    public LocalDate getPublishDate() {
        return publishDate;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getSource() {
        return source;
    }

    public void setIsImportant(Integer isImportant) {
        this.isImportant = isImportant;
    }

    public Integer getIsImportant() {
        return isImportant;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
